<?php
$this->pageTitle=Yii::app()->name . ' - Contact Us';
$this->breadcrumbs=array(
	'Contact',
);
?>

<?php if(Yii::app()->user->hasFlash('contact')): ?>

<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('contact'); ?>
</div>

<?php else: ?>

<div class="container">

<?php $form=$this->beginWidget('CActiveForm',array(
	'id'=>'contact-form',
	'enableAjaxValidation'=>true,
)); ?>
	<h4><?php echo Yii::t('layout','Contact Us')  ?></h4>
	<p>
	<?php echo Yii::t('layout','If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.')  ?>

</p>
	<p class="note"><?php echo Yii::t('layout','Fields with <code>*</code> are required.') ?></p>

	<?php echo $form->errorSummary($model); ?>


		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array(		)); ?>



		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email'); ?>



		<?php echo $form->labelEx($model,'subject'); ?>
		<?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?>



		<?php echo $form->labelEx($model,'body'); ?>
		<?php echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?>


	<?php if(extension_loaded('gd')): ?>

		<?php echo $form->labelEx($model,'verifyCode'); ?>
		
		<?php $this->widget('CCaptcha'); ?>
		<?php echo $form->textField($model,'verifyCode'); ?>
		
		<div class="hint"><?php echo Yii::t('layout','Please enter the letters as they are shown in the image above.<br/>Letters are not case-sensitive.')?></div>

	<?php endif; ?>


		<?php echo CHtml::submitButton('Submit',array('class'=> "btn btn-large btn-primary")); ?>


<?php $this->endWidget(); ?>

</div><!-- form -->

<?php endif; ?>